package com.niit.entity.dto;

import com.niit.entity.Company;
import com.niit.entity.Info;
import com.niit.entity.User;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class UserDisplayDTO {
	private Info info;
	private int id;
	private Boolean userType;
	private Company company;
	private String resumeHash;
	private String avatarBase64;

	public UserDisplayDTO(User user, String avatarBase64) {
		this.info = user.getInfo();
		this.id = user.getId();
		this.userType = user.getUserType();
		this.company = user.getCompany();
		this.resumeHash = user.getResumeHash();
		this.avatarBase64 = avatarBase64;
	}
}
